package com.burger.counter.business;

import com.burger.counter.beans.Region;
import com.burger.counter.dao.RegionDao;

public class RegionBusiness {
	public Region[] getRegionDetails() throws Exception{
		System.out.println("we r in business layer");
		RegionDao regionDao = new RegionDao();
		Region[] region =regionDao.getRegionDetails();
		System.out.println("we r in business layer again");
		return region;
	}
	
	public Region[] getRegionandTaxDetails() throws Exception{
		System.out.println("we r in business layer");
		RegionDao regionDao = new RegionDao();
		Region[] region = regionDao.getRegionandTaxDetails();
		return region;
		
	}	
	
	public Region[] getTaxDetails(String regionId) throws Exception{
		System.out.println("we r in business layer");
		RegionDao regionDao = new RegionDao();
		Region[] region = regionDao.getTaxDetails(regionId);
		return region;
		
	}	
}
